﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sern.Abstracts.Common
{
    public class Constant
    {
        /// <summary>
        /// This should be more flexible but for v1 let's keep this simple until our need changes.
        /// </summary>
        public static readonly TimeSpan ClientKeepAliveRate = TimeSpan.FromSeconds(10);

        public const decimal CutOffPointKeepAliveRateMultiplier = 1.5m;

        public const int MinRedundancy = 2;

        public static readonly TimeSpan ProcessingMaxTimeout = TimeSpan.FromMinutes(15);

        public static readonly TimeSpan JobEndedPollingInterval = TimeSpan.FromMinutes(15);

        public static readonly bool IsPollingRandomized = true;
    }
}
